import React from 'react';
import App from 'next/app';
import Head from 'next/head';

class MyApp extends App {
  componentDidMount() {
    console.log('_app.js is baidu js mounted');
}
  render() {
    const { Component, pageProps } = this.props;
    return (
      <>
        <Head>
        <script
            src="https://hm.baidu.com/hm.js?2c88a5ea87c682bf5e0bad4e90069c8a"
          />
        </Head>
        <Component {...pageProps} />
      </>
    );
  }
  
}

export default MyApp; 